import Vue from 'vue'
import VueRouter from 'vue-router'
const Category = () =>import('../views/category/Category.vue')
const Detail = ()=>import('../views/detail/Detail.vue')
Vue.use(VueRouter)

const routes = [
    
    { path: '/cart', component: require('../views/cart/Cart.vue').default},
    { path: '/category', component: Category},
    { 
    path: '/home', 
    component: require('../views/home/Home.vue').default,
   
      
    },
    { path: '/profile',component: require('../views/profile/Profile.vue').default},
    { path: '/', redirect:'/home' },
    { path: '/detail/:iid', component: Detail}

    
  
]

const router = new VueRouter({
  routes
})

export default router
